package org.example.docsearcher.service;

import org.example.docsearcher.config.DocSearcher;
import org.example.docsearcher.model.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SearcherService {
    @Autowired
    DocSearcher searcher;
    public List<Result> getInfo(String query) {
        return searcher.search(query);
    }
}
